#!/usr/bin/env bash
TOKEN=$(cat /srv/ipingus6/token.conf)
SUBDOMAIN=$(cat /srv/ipingus6/subdomain.conf)
IP=$(ip a | grep 2001 | awk '{print $2}' | awk -F '/' '{print $1}')
curl -sSL "https://www.duckdns.org/update?domains=$SUBDOMAIN&token=$TOKEN&ipv6=$IP" >> /tmp/ddns.log 2>&1